﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;

public partial class Ticksys_ABM_Usuarios_Usuarios : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            DataSet ds = CargarGridView.ConsultarUsuarios();

            GridView1.DataSource = ds.Tables [0];
            GridView1.DataBind();

        }
    }
    protected void btn_Editar_Click(object sender, ImageClickEventArgs e)
    {
        string Username = (sender as ImageButton).CommandArgument;

        Response.Redirect("Modificar_Usuario.aspx?id=" + Username);
    }
}